<template>
  <div id="app">

    <HelloWorld title="美食" :dataList=food>
      <img slot="slot1" src="https://cdn.pixabay.com/photo/2023/05/29/17/01/hamburger-8026582_1280.jpg" alt="汉堡">
      <a slot="slot2" href="https://www.bilibili.com">更多美食去bilibili</a>
    </HelloWorld>

    <HelloWorld title="游戏" :dataList=games>
      <ul slot="slot1">
        <li v-for="(item, index) in games" :key=index> {{ item }} </li>
      </ul>

      <template slot="slot2">
        <a href="https://www.bilibili.com">单机游戏</a>
        <a href="https://www.bilibili.com">网络游戏</a>
      </template>

    </HelloWorld>

    <HelloWorld title="电影">
      <video controls autoplay name="media" slot="slot1">
        <source
          src="https://vdept3.bdstatic.com/mda-qdqxvr04ju7kwxez/cae_h264/1714102071853507436/mda-qdqxvr04ju7kwxez.mp4?v_from_s=hkapp-haokan-hbf&auth_key=1722925829-0-0-594bf952ad35b316155fb31910c4dd77&bcevod_channel=searchbox_feed&pd=1&cr=0&cd=0&pt=3&logid=1829736185&vid=2405378101862107884&klogid=1829736185&abtest="
          type="video/mp4">
      </video>
      <template slot="slot2">
        <a href="https://www.bilibili.com">经典</a>
        <a href="https://www.bilibili.com">热门</a>
        <a href="https://www.bilibili.com">推荐</a>
      </template>
    </HelloWorld>
  </div>
</template>

<script>
import HelloWorld from './components/HelloWorld.vue'

export default {
  name: 'App',
  components: {
    HelloWorld
  },
  data() {
    return {
      food: ['火锅', '烧烤', '小龙虾', '牛排'],
      games: ['红色警戒', '穿越火线', 'QQ飞车', '超级玛丽'],
      movie: ['《教父》', '《拆弹专家》', '《你好,李焕英》', '《1942》']
    }
  }
}
</script>

<style lang="less" scoped>
#app {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
}
</style>
